package com.demo.java.reference;

// -Xmx10m -Xms10m -XX:+PrintGCDetails -XX:+PrintGCDateStamps
public class StrongReferenceTest {
    public static void main(String[] args) throws InterruptedException {
        int mb = 1024 * 1024;
        byte[] bytes1 = new byte[mb * 5];

        System.gc();
        Thread.sleep(100);
        byte[] bytes2 = new byte[mb * 5];
    }
}
